package com.hj.collegetravel.services;

import com.hj.collegetravel.models.CUpdate;
import com.hj.collegetravel.models.CUser;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface IUserService {

    void index(HttpServletRequest request);

    boolean checkEmail(String uEmail);

    boolean checkUsername(String username);

    boolean dosignup(CUser user);

    boolean dologin(String login, String password, HttpServletRequest request, HttpServletResponse response, String remember);

    boolean forget(CUser user, HttpServletRequest request);

    void person(HttpServletRequest request);

    void college(Integer sId, HttpServletRequest request);

    void college_introduce(Integer sId, HttpServletRequest request);

    void college_position(Integer sId, HttpServletRequest request);

    void college_in(Integer sId, HttpServletRequest request);

    void college_out(Integer sId, HttpServletRequest request);

    void detail(Integer vId, HttpServletRequest request);

    void person_center(Integer uId, HttpServletRequest request);

    boolean sendComment(String content, Integer vId, String[] imgArr, HttpServletRequest request);

    boolean sendComment2(String content, Integer vId, Integer cId, Integer uId, HttpServletRequest request);

    void view(Integer num,Integer sId, HttpServletRequest request);

    void search(HttpServletRequest request);

    void searchResult(String s, HttpServletRequest request);

    void find(HttpServletRequest request);

    void comment(HttpServletRequest request);

    boolean delComment(Integer cId, HttpServletRequest request);

    void getComment(Integer id, HttpServletRequest request, HttpServletResponse response) throws IOException;

    void comment_detail(Integer cId, HttpServletRequest request);

    void modify(HttpServletRequest request);

    boolean domodify(CUser cUser, HttpServletRequest request);

    Integer do_modify_email(String password, HttpServletRequest request);

    Integer do_modify_pass(String pass1, String pass2, HttpServletRequest request);

    boolean doheadicon(String icon, HttpServletRequest request);

    CUpdate checkUpdate(String version, HttpServletRequest request);

    boolean qqlogin(String openid, HttpServletRequest request, HttpServletResponse response);
}